﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace My.Core.Model.ViewModel
{
    /// <summary>
    /// 菜单动作
    /// </summary>
    public class FrameworkActionView
    {
        /// <summary>
        /// 页面名称
        /// </summary>
        [Display(Name = "页面名称", Description = "")]
        [Required(ErrorMessage = "页面名称不能为空")]
        public string PageName { get; set; }
        /// <summary>
        /// 菜单链接地址
        /// </summary>
        [Display(Name = "菜单链接地址", Description = "")]
        
        public string LinkUrl { get; set; }

        /// <summary>
        /// ModuleRountTemplate
        /// </summary>
        [Display(Name = "ModuleRountTemplate", Description = "")]
        public string ModuleRountTemplate { get; set; }

        /// <summary>
        /// 控制器名称
        /// </summary>
        [Display(Name = "控制器名称")]
        [StringLength(100)]
        [Required(ErrorMessage = "控制器名称")]
        public string ControllerName { get; set; }

        /// <summary>
        /// 控制器
        /// </summary>
        [Display(Name = "控制器名称")]
        [StringLength(100)]
        public string Controller { get; set; }
        /// <summary>
        /// Action名称
        /// </summary>

        [Display(Name = "Action名称")]
        [StringLength(100)]
        public string ActionName { get; set; }

        /// <summary>
        /// 动作 Action
        /// </summary>
        [Display(Name = "Action")]
        [StringLength(100)]
        public string Action { get; set; }

        /// <summary>
        /// ClassName
        /// </summary>
        [Display(Name = "ClassName")]
        [StringLength(100)]
        public string ClassName { get; set; }

    }
}
